import requests
url = "https://graph.baidu.com/upload"      # 百度请求
files = {
    'images':('333.jpg' ,open(r'C:\Users\Administrator\Desktop\333.jpg','rb'),'image/jpeg')
}
r = requests.post(url,files=files)
print(r.json())




